package ru.surfstudio.graduate.data;

import java.io.Serializable;
import java.util.Date;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable
public class Feed implements Serializable {

	private static final long serialVersionUID = 1L;
	
	public static final String CHANNEL_ID_FIELD_NAME ="channelId";
	public static final String DATE_FIELD_NAME ="date";
	public static final String FAVORITE_FIELD_NAME ="favorites";
	public static final String READED_FIELD_NAME = "readed";
	public static final String URL_FIELD_NAME ="url";
	
	@DatabaseField(generatedId = true)
	private Integer id;
	
	@DatabaseField
	private String name;
	
	@DatabaseField(columnName=URL_FIELD_NAME)
	private String url;
	
	@DatabaseField
	private String content;
	
	@DatabaseField
	private String author;
	
	@DatabaseField(columnName=DATE_FIELD_NAME)
	private Date date;
	
	@DatabaseField(columnName=READED_FIELD_NAME)
	private Boolean readed = false;
	
	@DatabaseField(columnName=FAVORITE_FIELD_NAME)
	private Boolean favorites = false;
	
	@DatabaseField(columnName=CHANNEL_ID_FIELD_NAME)
	private Integer channelId;
	
	@DatabaseField
	private String channelName;

	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Boolean getReaded() {
		return readed;
	}

	public void setReaded(Boolean readed) {
		this.readed = readed;
	}

	public Boolean getFavorites() {
		return favorites;
	}

	public void setFavorites(Boolean favorites) {
		this.favorites = favorites;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Integer getChannelId() {
		return channelId;
	}

	public void setChannelId(Integer channelId) {
		this.channelId = channelId;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	
	
	
}
